﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="list-category.ascx.cs"
    Inherits="usercontrols_list_category" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2011.2.915.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<div class="title_block_product">
    <div class="warp_page2">
        <div class="page">
        </div>
        <!--end #page-->
        <div class="per_page">
        </div>
        <!--end #per_page-->
        <div class="sort_by">
            Sort By:
            <select class="combo_sort_by" name="select12" id="select12">
                <option>Best Selling</option>
            </select>
        </div>
        <!--end #sort_by-->
    </div>
    <!--end #warp_page2-->
</div>
<%--<div class="div-paging">
    <asp:Label ID="lblPaging1" runat="server" Text=""></asp:Label>
</div>--%>
<asp:DataList ID="dtlProducts" RepeatColumns="3" runat="server">
    <ItemTemplate>
        <div class="products">
            <div class="lb_hot">
                <%#ImageStatus(Eval("StatusImage"))%>
            </div>
            <!--end #lb_hot-->
            <div class="image">
                <%#LinkImage(Eval("ImageURL"), Eval("ProductID"), Eval("Name"),Eval("Code"),Eval("CategoryID"), Eval("Description"))%>
            </div>
            <div class="name_sp">
                <%#LinkHeader(Eval("ProductID"), Eval("Name"), Eval("CategoryID"))%>
            </div>
            <!--end #name_sp-->
            <div class="code-price">
                <div class="code">
                    Item # : <font color="#2D7BBE">
                        <%#Eval("Code")+""%></font>
                </div>
                <%#ImageStock(Eval("Quality"))%>
                <br />
            </div>
            <center class="rating">
                <asp:Panel ID="pnRating" runat="server" Visible='<%#IsRating(Eval("ReviewRating")) %>'>
                    <telerik:RadRating ID="radRating" runat="server" ItemCount="5" Value='<%#Convert.ToDouble(Eval("Rating")) %>'
                        Precision="Half" Orientation="Horizontal" SelectionMode="Continuous" ReadOnly="true" />
                    (Review:
                    <%#Eval("ReviewRating")+"" %>
                    )
                </asp:Panel>
            </center>
            <div class="warpper_price_add">
                <%# Price(Eval("Price"), Eval("IsMapPrice"), Eval("Discount"))%>
                <!--end #price-->
                <div class="add-cart">
                    <asp:TextBox ID="txtQuantity" CssClass="textbox_q" onkeyup="AcceptDigits(this)" Text="1"
                        MaxLength="3" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="btnAddToCart" ImageUrl="~/images/bt_addcart.jpg" runat="server" />
                </div>
            </div>
            <!--end #warpper_price_add-->
        </div>
    </ItemTemplate>
</asp:DataList>
<%--<div class="div-paging">
    <asp:Label ID="lblPaging" runat="server" Text=""></asp:Label>
</div>--%>
<div class="title_block_product_foot">
    <div class="warp_page2">
        <div class="page">
        </div>
        <!--end #page-->
        <div class="per_page">
        </div>
        <!--end #per_page-->
        <div class="sort_by">
            Sort By:
            <select class="combo_sort_by" name="select12" id="select1">
                <option>Best Selling</option>
            </select>
        </div>
        <!--end #sort_by-->
    </div>
    <!--end #warp_page2-->
</div>
